<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 数学</title>
</head>
<body>
<h2>Math.sqrt()</h2>
<p>Math.sqrt(x)返回 x 的平方根：</p>

<p id="demo"></p>

<script>
  document.getElementById("demo").innerHTML = Math.sqrt(64);
</script>

</body>
</html>


<!--
运行结果：8
-->